﻿using System;
using System.IO;
using System.Net;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;

namespace NetrekUI
{
	public partial class Page1
	{
        public Page1()
        {
            _myData = new SampleData();

            this.InitializeComponent();
        }

        public SampleData MyData { get { return _myData; } }

        SampleData _myData;
	}

    public class SampleDataClass
    {
        public SampleDataClass(string str, int i, string etc)
        {
            _name = str;
            _type = i;
            _etc = etc;
        }
        public string Name { get { return _name; } set { _name = value;  } }
        public int ShipType { get { return _type; } }
        public string Etc { get { return _etc; } }

        string _name;
        int _type;
        string _etc;
    }


    public class SampleData : ObservableCollection<SampleDataClass>
    {
        public SampleData()
        {
            this.Add(new SampleDataClass("Frigate", 12, "Extra Text"));
            this.Add(new SampleDataClass("Frigate", 22, "Extra Text"));
            this.Add(new SampleDataClass("Frigate", 32, "Extra Text"));
            this.Add(new SampleDataClass("Frigate", 42, "Extra Text"));
        }
    }        

}